package com.li.youhappygo.model.entity.order;

import java.math.BigDecimal;
import java.util.Date;

import com.li.youhappygo.annotation.Log;
import com.li.youhappygo.model.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "订单信息表")
public class OrderInfo extends BaseEntity {

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "订单编号")
    private String orderNum;

    @Schema(description = "订单总金额")
    private BigDecimal totalAmount;

    @Schema(description = "订单状态【1为已完成，2为未付款，3为未发货，4为运输中，5为已完成，6为已关闭】")
    private Integer orderStatus;

    @Schema(description = "支付时间")
    private Date paymentTime;

    @Schema(description = "订单备注")
    private String remark;

    @Schema(description = "使用的优惠券ID")
    private Long couponId;

    @Schema(description = "优惠券金额")
    private BigDecimal couponAmount;

    @Schema(description = "原价金额")
    private BigDecimal originalTotalAmount;

    @Schema(description = "运费")
    private BigDecimal feightFee;

    @Schema(description = "支付方式")
    private Integer payType;

    @Schema(description = "发货时间")
    private Date deliveryTime;

    @Schema(description = "收货时间")
    private Date receiveTime;

    @Schema(description = "取消时间")
    private Date cancelTime;

    @Schema(description = "取消原因")
    private String cancelReason;
}
